package com.zonhar.autofeed.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zonhar.autofeed.entities.entity.DistConfigEntity;

import java.util.List;
import java.util.Map;

public interface DistConfigService extends IService<DistConfigEntity> {

    /**
     *
     * @return
     */
    Map<String, Object> getDistConfigMap();

    void updateByList(List<DistConfigEntity> configEntityList);

    void updateByMap(Map<String, Object> params);

    /**
     * 根据传感器名称获取配置
     * @param distGroupName
     * @return
     */
    Map<String, Object> getSensorListByDistGroupName(String distGroupName);
}
